/**
 * @fileOverview Config options for requirejs and load main file of app
 * @author Le Duc, Nam (lenam.k54@gmail.com)
 * @copyright VIT Coder group
 */

requirejs.config({
    baseUrl: 'js/libs',
    shim: {
        backbone: {
            deps: ['underscore', 'jquery'],
            exports: 'Backbone'
        },
        underscore: {
            exports: '_'
        }
    },
    paths: {
        app: '..',
        views: '../views',
        models: '../models',
        templates: '../../templates'
    }
});

// Start the main app logic.
requirejs([
    'app/app'
], function (main) {
    main.initialize();
});